<!DOCTYPE html>
<html>
	<head>
		{{include file="../Common/head"}}
		<!--导航 end-->
		
		<!--我的购物车部分开始-->
		<div id="c_my_cart">
			<div class="c_shop_bag">
			<div id="cart_box">
				
				
				<h4 id="h4">我的购物车</h4>
				{{if value="$goodsData"}}
				<div id="goods_data">
					<div class="catbox c_goods_info">
						<div class="cartTable">
							<ul class="cartTable_ul_top">
									<li class="c_goods_text">商品</li>
									<li class="shengyu">剩余人次</li>
									<li class="duobao">夺宝人次</li>
									<li class="qishu">参与期数</li>
									<li class="xiaoji">小计</li>
									<li class="caozuo">操作</li>
							</ul>
							{{foreach from="$goodsData" key="$k" value="$v"}}
							<!--<?php sp($goodsData); ?>-->
							<ul class="cartTable_ul_list">
								<li class="checkbox"><input type="checkbox" /></li>
								<li class="goods">
									<a href=""><img style="width: 100px;height: 80px;" src="{{$v['pic']}}" alt="" /></a>
									<span><!--<em>十元专区</em>--><a href="{{U('Details/index',array('gid'=>$v['id']))}}" class="title_0">{{$v['name']}}</a></span>
									<b class="c_goods_price">总需<i>{{$v['price']}}</i>人次参与，还剩<i>100</i>人次</b>
								</li>
								<li class="price w_price">100</li>
								<li class="count">
									<div class="w_one_new">
										<span class="span_subtract">-</span>
										<input class="count-input" type="text" value="{{$v['num']}}"/>
										<span class="span_add">+</span>
									</div>
								</li>
								<li class="w_one">
									<div class="w_one_new">
										<span>-</span>
										<input class="count-input1" type="text" value="1"/>
										<span>+</span>
									</div>
								</li>
								<!--<li class="subtotal">{{$v['total']}}</li>-->
								<li class="subtotal">{{$v['num']}}</li>
								<li class="operation"><span num="{{$k}}">删除</span></li>
							</ul>
							<!--购物车中商品id-->
							<input class="cart_gid" type="hidden" name="id" value="{{$v['id']}}"/>
							{{endforeach}}
						</div>
					</div>
					<div class="c_total c_order_total">
						<label class="fl select-all"><input id="SelectAll" onclick="actionSelectAll()" class="check-all check" checked="" type="checkbox">&nbsp;全选</label>
						<a class="fl delete" id="deleteAll" href="javascript:actionDeleteAll();">删除</a>
						<div class="fr total">
							<span class="c_total_text">支付总额：</span>
							<span id="priceTotal">{{$data['total_rows']}}</span>
							<span class="c_total_text">夺宝币</span>
						</div>
						<div class="w_popup_window" style="float:right;margin-right:12px;bottom:5px;right:0px;position:absolute;">
					现在可以一次参与多期奖品哦
							<a href="">详情</a>
							
						</div>
					</div>
					<div class="c_user_reduce" id="redDiv">
						 	<input id="red" class="order_checkbox" type="checkbox"> 使用红包抵消部分金额
							<div id="redTips" style="position:absolute;left: 328px;top: 1px;color: #dd2726;display:none;">购物卡结算不能使用红包</div>
							<div class="c_order_select" style="">
								<div class="select_box selectBox">
									<div class="select_showbox selectDiv" style="cursor: pointer;">暂无可用红包</div>
								</div>
							</div>
					</div>
					<div class="c_user_reduce_box">
						<div class="c_user_reduce" style="border: none;">
						<input id="card" class="order_checkbox" type="checkbox">
						使用购物卡余额支付，购物卡余额：
						<span id="cardMoney">0</span>夺宝币
							<i id="cardTips" style="margin-left:20px;color: #dd2726;display:none;">红包结算不能使用购物卡</i>
						</div>
					</div>
					<div class="c_user_reduce_box">
						<div class="c_user_reduce" style="border: none;">
						<input id="money" class="order_checkbox" type="checkbox">
						使用账户余额支付，账户余额：<span id="userMoney">{{$userData[0]['sum']}}</span>夺宝币&nbsp;(小数位不参与计算)</div>
					</div>
					 <!--account 账户  enough 足够-->
					<div class="c_account_enougth">
						<div class="c_account_yue">
							<div class="yue_left">若账户余额不足，请选择以下方式完成支付</div>
							<div class="yue_right">使用微信支付<span>{{$data['total_rows']}}</span>夺宝币</div>
						</div>
						<div class="c_account_zhifufangshi">
							<ul>
								<li class="zhifu_fangshi">支付方式 :</li>
								<li class="zhifu_wx"><a href="">微信支付</a><span></span></li>
								<li class="zhifu_jd"><a href="">京东支付</a><span></span></li>
								<li class="zhifu_wangyin"><a href="">网银支付</a><span></span></li>
								<li class="zhifu_xinyongka"><a href="">信用卡支付</a><span></span></li>
							</ul>
						</div>
						<div class="c_account_fuwu">
							<input type="checkbox" />
							<b>我已阅读并同意</b>
							<i>《服务协议》</i>
						</div>
						<div class="c_account_querenzhifu"><a href="javascript:;">确认支付</a></div>
						<div class="c_account_wenti">
							 	<p>付款遇到问题:</p>
								<p>1、如您未开通网上银行，即可以使用储蓄卡快捷支付轻松完成付款；</p>
								<p>2、如果银行卡已经扣款，但您的账户中没有显示，有可能因为网络原因导致，请及时联系客服400-187-6777。</p>
						</div>
					</div>
				</div>
				{{else}}
				<div class="c_no_goods" id="null" style="">
					<div class="c_no_right y_no_left">
						<img src="./Public/Home/images/shop_bag_no.png">
						
					</div>
					<div class="c_no_left y_no_right">
						<p>你的购物车还是空的赶紧行动吧！</p>
						<a href="{{U('list/index')}}" class="c_quick_shop" hidefocus="">马上去购物</a>
					</div>
				</div>
				{{endif}}
				</div>
			</div>
		</div>
		<!--我的购物车部分结束-->
		
		
		<!--最底层部分开始-->
		{{include file="../Common/foot"}}
		<!--最底层部分结束-->
	</body>
</html>
